﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ForumScore.aspx.cs" Inherits="Pages_ForumScore" MasterPageFile="~/Admin/MasterPage.master" Title="论坛分数管理" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="toolbar">
        <XCL:LinkBox ID="lbAdd" runat="server" BoxHeight="913px" BoxWidth="440px" Url="ForumScoreForm.aspx"
            IconLeft="../images/icons/icon005a2.gif"><b>添加论坛分数</b></XCL:LinkBox>
        关键字：<asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" Text="查询" />
    </div>
    <asp:GridView ID="gvForumScore" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="ObjectDataSource1" AllowPaging="True" AllowSorting="True" CssClass="m_table" PageSize="20" CellPadding="0" GridLines="None" EnableModelValidation="True">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="编号" SortExpression="ID" InsertVisible="False" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" CssClass="key" />
            </asp:BoundField>
            <asp:BoundField DataField="SiteID" HeaderText="站点编号" SortExpression="SiteID" />
            <asp:BoundField DataField="InitScore" HeaderText="初始分数" SortExpression="InitScore" />
            <asp:BoundField DataField="PublishTheme" HeaderText="发布主题" SortExpression="PublishTheme" />
            <asp:BoundField DataField="DeleteTheme" HeaderText="删除主题" SortExpression="DeleteTheme" />
            <asp:BoundField DataField="PublishPost" HeaderText="发布发布" SortExpression="PublishPost" />
            <asp:BoundField DataField="DeletePost" HeaderText="删除发布" SortExpression="DeletePost" />
            <asp:BoundField DataField="Best" HeaderText="最好" SortExpression="Best" />
            <asp:BoundField DataField="CancelBest" HeaderText="取消最好" SortExpression="CancelBest" />
            <asp:BoundField DataField="Bright" HeaderText="明亮" SortExpression="Bright" />
            <asp:BoundField DataField="CancelBright" HeaderText="取消明亮" SortExpression="CancelBright" />
            <asp:BoundField DataField="TopTheme" HeaderText="顶部主题" SortExpression="TopTheme" />
            <asp:BoundField DataField="CancelTop" HeaderText="取消顶部" SortExpression="CancelTop" />
            <asp:BoundField DataField="UpTheme" HeaderText="上主题" SortExpression="UpTheme" />
            <asp:BoundField DataField="DownTheme" HeaderText="下主题" SortExpression="DownTheme" />
            <asp:BoundField DataField="Upload" HeaderText="上传" SortExpression="Upload" />
            <asp:BoundField DataField="Download" HeaderText="下载" SortExpression="Download" />
            <asp:BoundField DataField="Search" HeaderText="搜索" SortExpression="Search" />
            <asp:BoundField DataField="Vote" HeaderText="投票" SortExpression="Vote" />
            <asp:BoundField DataField="prop1" HeaderText="属性1" SortExpression="prop1" />
            <asp:BoundField DataField="prop2" HeaderText="属性2" SortExpression="prop2" />
            <asp:BoundField DataField="prop3" HeaderText="属性3" SortExpression="prop3" />
            <asp:BoundField DataField="prop4" HeaderText="属性4" SortExpression="prop4" />
            <asp:BoundField DataField="AddUser" HeaderText="添加用户" SortExpression="AddUser" />
            <asp:BoundField DataField="AddTime" HeaderText="添加时间" SortExpression="AddTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="ModifyUser" HeaderText="修改用户" SortExpression="ModifyUser" />
            <asp:BoundField DataField="ModifyTime" HeaderText="修改时间" SortExpression="ModifyTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="BackupNo" HeaderText="备份编号" SortExpression="BackupNo" />
            <asp:BoundField DataField="BackupOperator" HeaderText="备份操作者" SortExpression="BackupOperator" />
            <asp:BoundField DataField="BackupTime" HeaderText="备份时间" SortExpression="BackupTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="BackupMemo" HeaderText="备份注释" SortExpression="BackupMemo" />
            <XCL:LinkBoxField HeaderText="编辑" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="ForumScoreForm.aspx?ID={0}" Height="913px" Text="编辑" Width="440px" Title="编辑论坛分数">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </XCL:LinkBoxField>
            <asp:TemplateField ShowHeader="False" HeaderText="删除">
                <ItemTemplate>
                    <asp:LinkButton ID="btnDelete" runat="server" CausesValidation="False" CommandName="Delete"
                        OnClientClick='return confirm("确定删除吗？")' Text="删除"></asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            没有符合条件的数据！
        </EmptyDataTemplate>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="NXCMS.CMS.ForumScore"
        DeleteMethod="Delete" EnablePaging="True" OldValuesParameterFormatString="original_{0}"
        SelectCountMethod="SearchCount" SelectMethod="Search" SortParameterName="orderClause"
        TypeName="NXCMS.CMS.ForumScore">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtKey" Name="key" PropertyName="Text" Type="String" />
            <asp:Parameter Name="orderClause" Type="String" />
            <asp:Parameter Name="startRowIndex" Type="Int32" />
            <asp:Parameter Name="maximumRows" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <XCL:GridViewExtender ID="gvExt" runat="server">
    </XCL:GridViewExtender>
</asp:Content>